package com.tjetc.dao;

import com.tjetc.entity.Comment;

import java.util.List;

/*
 * 评价
 * */
public interface CommentMapper {
    //查找菜品评价
    List<Comment> selectByDishId(int dishId);

    //添加评价
    int addComment(Comment comment);

    //查找用户的评价
    List<Comment> selectByUserId(int user);

    //删除评价
    int deleteById(int id);
}
